package com.taxi.driver.module.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.taxi.driver.data.entity.FeedBackEntity;

public class FeedbackVO {

    public static FeedbackVO createFrom(FeedBackEntity entity) {
        if (entity == null) return new FeedbackVO();
        String strJson = JSON.toJSONString(entity);
        return JSON.parseObject(strJson, FeedbackVO.class);
    }

    @JSONField(name = "title")
    public String title;
    @JSONField(name = "content")
    public String content;
    @JSONField(name = "createTime")
    public long createTime;
    @JSONField(name = "replyContent")
    public String reply;
    public boolean isOpen;
}
